public class EagerSingletonFactory {
    private String myName;
    private EagerSingletonFactory(){}

    public EagerSingletonFactory(String myName) {
        this.myName = myName;
    }

    private static final EagerSingletonFactory instance = new EagerSingletonFactory();

    public static EagerSingletonFactory  getInstance(){
        return instance;
    }

    public String shoInfo(){
        return  Integer.toString(this.hashCode());
    }

    public String getMyName() {
        return myName;
    }

    public void setMyName(String myName) {
        this.myName = myName;
    }
}
